package com.yunji.generate;

import com.yunji.generate.util.ResourceUtil;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

/**
 * @author hushuang
 * @since 2019/9/21
 */
public class Starter extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws IOException {

        Parent root = FXMLLoader.load(Starter.class.getResource("/fxml/MainFrame.fxml"));

        primaryStage.getIcons().add(ResourceUtil.LOGO_JAVAFX);
        primaryStage.setTitle("代码生成器(WhiteCat)");
        primaryStage.setScene(new Scene(root, 700, 600));
        primaryStage.show();

    }
}
